<?php
session_start();
isLogin();
if(isset($_POST['Submits'])){
	if(mysql_query("update ".$prefix."ad set view_bottom='".addslashes($_POST['view_bottom'])."',groupAD='".addslashes($_POST['groupAD'])."' where a_id=1")){
		reload_js("修改成功","index.php?cmd=ad");
	}else{
		reload_js("修改失败，原因：程序错误，请联系技术人员进行修改","index.php");
	}
}
?>
<script type="text/javascript" src="../model/fckeditor/fckeditor.js"></script>
<script language="javascript" src="../templates/<?php echo $moban;?>/js/common.js"></script>
<script language="javascript">
changeWebTitle('广告管理');
</script>

<div class="ContentRight">
    <div class="ContentRightTop">
      <div class="BarLeft"></div>
      <div class="ContentRightTopText">广告管理</div>
      <div class="BarRight"></div>
      <div class="Cal"></div>
    </div>
    <div class="ContentRightBox">
	<form name="adform" method="post" action="">
      <table width="100%" cellpadding="0" class="Table1" bordercolor="#4ab902" border="1" cellspacing="0">
        <tr>
          <td align="right" valign="top" style="padding-top:5px;">交流群组右侧：</td>
          <td>
		<script type="text/javascript">
			var sBasePath = '../model/fckeditor/' ;
			 
			var oFCKeditor = new FCKeditor( 'groupAD' ) ;
			oFCKeditor.BasePath	= sBasePath ;
			oFCKeditor.Height	= 150 ;
			oFCKeditor.Width	= 580 ;
			oFCKeditor.ToolbarSet="Fengsh";
			oFCKeditor.Value	= "<?php echo str_replace('"','\"',preg_replace('/\r\n/','',$ads['groupAD']));?>";
			oFCKeditor.Create() ;
		</script>		  </td>
        </tr>
        <tr>
          <td width="22%" align="right" valign="top" style="padding-top:5px;">商品详情页面底部：</td>
          <td width="78%"><a href="http://down.fengsh8.com" target="_blank"></a>
		<script type="text/javascript">
			var sBasePath = '../model/fckeditor/' ;
			 
			var oFCKeditor = new FCKeditor( 'view_bottom' ) ;
			oFCKeditor.BasePath	= sBasePath ;
			oFCKeditor.Height	= 150 ;
			oFCKeditor.Width	= 580 ;
			oFCKeditor.ToolbarSet="Fengsh";
			oFCKeditor.Value	= "<?php echo str_replace('"','\"',preg_replace('/\r\n/','',$ads['view_bottom']));?>";
			oFCKeditor.Create() ;
		</script>		</td>
        </tr>
        
        <tr>
          <td height="25" align="right">版权所有：</td>
          <td><a href="http://www.fengsh8.com" target="_blank">风尚淘客程序</a></td>
        </tr>
        <tr>
          <td height="25" align="right">&nbsp;</td>
          <td>
            <input name="Submits" type="submit" id="Submits" value=" 提  交" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;            <input name="Reset" type="reset" id="Reset" value=" 重 置 " />          </td>
        </tr>
      </table>
	  </form>
    </div>
    <div class="Cal"></div>
  </div>